﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Main.aspx.cs" Inherits="Vehicle.Web.Pages.Task.Main" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="GMDatePicker" Namespace="GrayMatterSoft" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>物流管理系统</title>
   <!-- 引用CSS与JS-->
<link href="../../Style/skin.css" rel="stylesheet" type="text/css" />
<script src="../../Scripts/Menu.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="SM_AJAX" runat="server">
                 </asp:ScriptManager>  
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
   <td width="17" valign="top" background="../../Images/mail_leftbg.gif"><img src="../../images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="../../Images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">成本维护</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="../../images/mail_rightbg.gif"><img src="../../images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td height="71" valign="middle" background="../../images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="13" valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td class="left_txt">当前位置：成本维护--<a href="../Expense/Main.aspx">车队运输成本维护</a>--查询承运任务</td>
          </tr>
          <tr>
            <td height="15"><table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
              <tr>
                <td></td>
              </tr>
            </table></td>
          </tr>
        </table>
          </td>
      </tr>
		 <tr>
          <td height=25>
           <!-- 筛选数据选择项 -->
            <table cellSpacing="0" cellPadding="2" border="0">
              <tbody>
              <td class="left_txt">筛选数据：</td>
                <td class="left_txt3">
                    <asp:RadioButton ID="rbt_C_Card" runat="server" Text="按承运单编号"  GroupName="select"  />
                        <asp:TextBox ID="txt_C_Card" runat="server" Width="90px"></asp:TextBox>
                  <asp:RadioButton ID="rbt_C_Num" runat="server" Text="按任务单编号"  GroupName="select"  />
                     <asp:TextBox ID="txt_C_Num" runat="server" Width="90px"></asp:TextBox>
                  </td>
                  </tr>
                  <tr>
                  <td>&nbsp;</td>
                  <td class="left_txt3"> <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate> <asp:RadioButton ID="rbt_C_Select" runat="server" Text="按条件筛选"  GroupName="select" Checked="true"  />
                   
                     车队：<asp:DropDownList ID="drop_M_ID" runat="server" AutoPostBack="True" 
                            onselectedindexchanged="drop_M_ID_SelectedIndexChanged">
                    </asp:DropDownList> 车辆：<asp:DropDownList ID="drop_V_ID" runat="server" 
                            AutoPostBack="True">
                    </asp:DropDownList>
                    &nbsp;&nbsp;起始时间:&nbsp;<cc1:GMDatePicker ID="Gmdp_Start" runat="server" CalendarTheme="Blue"
                        Font-Size="12px" NoneButtonText="清空" TodayButtonText="今天" 
                        InitialValueMode="Null"  EnableViewState="False" DisplayMode="Label">
                    </cc1:GMDatePicker>&nbsp;&nbsp;结束时间:&nbsp;
                     <cc1:GMDatePicker ID="Gmdp_End" runat="server" CalendarTheme="Blue"
                        Font-Size="12px" NoneButtonText="清空" TodayButtonText="今天" 
                        InitialValueMode="Null"  EnableViewState="False" DisplayMode="Label">
                    </cc1:GMDatePicker>&nbsp;&nbsp;&nbsp;<asp:Button ID="btn_Select" runat="server" 
                          Text="筛选" onclick="btn_Select_Click"  /></ContentTemplate></asp:UpdatePanel>       
                   </td></tbody></table></td></tr>
				 <tr>
				 <!-- 定义AJAX控件  -->
          <td> 
				 <asp:UpdatePanel ID="UPanel" runat="server">
				 <ContentTemplate>
				  <!-- 定义Repeater控件用于绑定数据  -->
              <asp:Repeater ID="ReptShow" runat="server" onitemdatabound="ReptShow_ItemDataBound" >
             <HeaderTemplate>
                <table id="grid" class="Tablt_All"  cellSpacing="1" cellPadding="2" rules="all" border="0">
              <tbody>
                      <tr class="main_tab">  
                <td width="8%">承运单编号</td>
                <td width="6%">任务编号</td>
                 <td width="6%">车队</td>
                <td width="6%">车牌号码</td>
                  <td width="5%">驾驶员</td>
                   <td width="8%">发车时间</td>  
                 <td width="8%">到达时间</td>
                 <td width="5%">完成情况</td>
                  <td width="10%">操作</td>
                </tr>
              </HeaderTemplate>
              <ItemTemplate>    
            <tr class="TR_All">
                 <td><a href="../Cargo/Cargo_View.aspx?id=<%# Eval("C_Card")%>"><%# Eval("C_Card")%></a></td> 
                <td><a href="Task_View.aspx?id=<%# Eval("T_ID") %>" ><%# Eval("T_Num")%></a></td>
                <td><asp:Label ID="lab_M_ID" runat="server" Text='<%# Eval("M_ID")%>'></asp:Label></td>
               <td><asp:Label ID="lab_V_ID" runat="server" Text='<%# Eval("V_ID")%>'></asp:Label></td>
                <td><asp:Label ID="lab_P_ID" runat="server" Text='<%# Eval("P_ID")%>'></asp:Label></td>
                <td><%# Eval("T_StarTime", "{0:yyyy-MM-dd}")%></td>   
                <td><%# Eval("T_EndTime", "{0:yyyy-MM-dd}")%></td>
                 <td><asp:Label ID="lab_T_Type" runat="server" Text='<%# Eval("T_Type")%>'></asp:Label></td>
                <td><img src="../../images/pic9.gif" height="13" /><A href="../Expense/Expense_Add.aspx?id=<%# Eval("T_ID") %>">录入成本</A></A> 
                </td>
                </tr>
              </ItemTemplate>          
              <FooterTemplate>
               </tbody></table>
              </FooterTemplate>
              </asp:Repeater>  
             <font style="text-align:center; color:Red;"><%= onshow %></font>
               <!-- 注册外部控件调用AJAX控件  -->
              </ContentTemplate> 
               <Triggers>
               <asp:AsyncPostBackTrigger ControlID="btn_Select" />
               <asp:AsyncPostBackTrigger ControlID="drop_M_ID" />
               <asp:AsyncPostBackTrigger ControlID="drop_V_ID" />
               </Triggers>
   </asp:UpdatePanel> </td>              
 <tr>
          <td align=right height=25>
             </td></tr>   
            
    </table></td>
    <td background="../../images/mail_rightbg.gif">&nbsp;</td>
  </tr> 
     
  <tr>
    <td valign="middle" background="../../images/mail_leftbg.gif"><img src="../../images/buttom_left2.gif" width="17" height="17" /></td>
      <td height="17" valign="top" background="../../images/buttom_bgs.gif"><img src="../../images/buttom_bgs.gif" width="17" height="17" /></td>
    <td background="../../images/mail_rightbg.gif"><img src="../../images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
<asp:UpdateProgress ID="UProgress" runat="server" AssociatedUpdatePanelID="UPanel">
<ProgressTemplate>
<font class="left_txt">数据提交中....</a></font>
</ProgressTemplate>
</asp:UpdateProgress>
</form>
</body>
